<?php
declare(strict_types=1);
namespace app\admin\widget;
use aphp\core\Widget;
class MakeCtrl extends Widget
{
    protected string $tag = 'model';
    protected int $expire = 0;
    public function set($id = '', array $options = []): array
    {
        if (str_starts_with($id, 'cp_')) {
            $id = substr($id, 3);
        }
        return ['table' => $id];
    }
}